package com.yc.myspringboot.listener.demo1;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class EventDemoListener2 implements ApplicationListener<EventDemo> {

	@Override
	public void onApplicationEvent(EventDemo event) {
		System.err.println("----EventDemoListener2-----receive--" + event.getMessage() + ", source: " + event.getSource());
		
	}

}
